//
//  UILabel+Extension.swift
//  新浪微博
//
//  Created by MBP on 16/5/14.
//  Copyright © 2016年 MBP. All rights reserved.
//

import UIKit


extension UILabel {
    convenience init(pn_text text: String,
                     textColor: UIColor = UIColor.darkGrayColor(),
                     fontSize: CGFloat = 14,
                     alignment: NSTextAlignment = .Left) {
       self.init()
       
        self.text = text
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        self.textAlignment = alignment
        
        self.numberOfLines = 0
        
        sizeToFit()
        }

}
